(function($){
    window.AdminExtended = {
        init: function(){
            var self = this;
            $(document).on('pjax:start', function() {

            });

            $(document).on('pjax:end', function() {

            });

            // always fires after ajax, regardless of result
            $(document).on('pjax:complete', function() {
                $('.modal-backdrop').hide();
                $("body").removeClass('modal-open');
            });
        },
    };
})(jQuery);

$(document).ready(function()
{
    AdminExtended.init();
});
